
<?php if ( $lodging->count() ):

        $cri = new Criteria();
        $cri->add( LodgingPhotoPeer::IS_FRONT, true );

        foreach( $lodging as $item ): ?>
            <div class="grid_5 lodging_container border_radius">
                <?php include_partial( 'lodging/lodgingItem', array( 'lodging'        => $item,
                                                                     'lodging_photos' => $item->getLodgingPhotos( $cri ) ) ) ?>
            </div>
<?php   endforeach ?>
<?php   else: ?>

            <div class="grid_2">
                <p>&nbsp;</p>
            </div>
            <div class="grid_16">
                <p>Извините, ничего не найдено. Попробуйте изменить параметры поиска.</p>
            </div>
            <div class="grid_2">
                <p>&nbsp;</p>
            </div>

<?php   endif ?>

<div class="clear"></div>
